package com.company.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 子评论
 * Created by tu on 2017/7/18.
 */
public class CommentChild implements Serializable {

  private static final long serialVersionUID = -3449712307039317416L;
  private Long id;
  /**
   * 父评论id
   */
  private Long parentId;

  private String content;
  /**
   * 赞的数量
   */
  private int diggCount;

  private Date createTime;

  public CommentChild() {
  }

  public CommentChild(Comment comment) {
    id = comment.getId();
    parentId = comment.getParentId();
    content = comment.getContent();
    diggCount = comment.getDiggCount();
    createTime = comment.getCreateTime();
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getParentId() {
    return parentId;
  }

  public void setParentId(Long parentId) {
    this.parentId = parentId;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public int getDiggCount() {
    return diggCount;
  }

  public void setDiggCount(int diggCount) {
    this.diggCount = diggCount;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  @Override
  public String toString() {
    return "CommentChild{" +
        "id=" + id +
        ", parentId=" + parentId +
        ", content='" + content + '\'' +
        ", diggCount=" + diggCount +
        ", createTime=" + createTime +
        '}';
  }
}
